package cn.devzyh.oms.wsms.api.entity;

import cn.devzyh.oms.common.mybatis.domain.BaseModel;
import cn.devzyh.oms.wsms.api.vo.StockQuantityVO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.RequiredArgsConstructor;

import java.util.List;

/**
 * 库存记录
 *
 * @author devzyh
 * @date 2023-10-29
 */
@TableName("stock")
@Data
@EqualsAndHashCode(callSuper = true)
public class Stock extends BaseModel<Stock> {

	/**
	 * ID
	 */
	@TableId(type = IdType.ASSIGN_ID)
	private Long id;

	/**
	 * 仓库编码
	 */
	private String warehouseCode;

	/**
	 * 渠道编码
	 */
	private String channelCode;

	/**
	 * SKU编码
	 */
	private String skuCode;

	/**
	 * 库存位置
	 */
	private String location;

	/**
	 * 可用数量
	 */
	private Integer quantity = 0;

	/**
	 * 数据版本
	 */
	private Long version = 0L;

}